<layout name='layout_page' />

<div class="row">
	<div class="col-lg-12">
		<div class="row">
			<div class="col-lg-12">
				<ol class="breadcrumb">
					<li><a href="<{:U('Index/index')}>">Home</a></li>
					<li>My mentees</li>
					<li class="active"><span>Request</span></li>
				</ol>
				<h1>Request</h1>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-lg-12">
		<div class="main-box clearfix">			
			<div class="main-box-body clearfix">
				<form id="ajaxForm" action="<{:U('Apprentice/save')}>" method="post" class="form-horizontal form-validata">
				<div class="request">
					<div class="userInfo">
						<img src="<{$list['fromFace']|getFace=###}>">
						<span><strong><{$list['fromName']}></strong><br/><{$list['createTime']|date="F,d,Y H:i:s",###}></span>
					</div>
					<li>
						<label>Project</label>
						<p class="train"><{$list['trainItem']}></p>
					</li>
					<li>
						<label>Current skills</label>
						<p><{$list['skills']}></p>
					</li>
					<li>
						<label>Target</label>
						<p><{$list['target']}></p>
					</li>
					<li>
						<label>Training experience</label>
						<p><{$list['train']}></p>
					</li>
					<li>
						<label>Work experience</label>
						<p><{$list['work']}></p>
					</li>
					<li>
						<label>Status</label>
						<eq name="list.status" value="0">
						<div class="form-group">
							<div class="radio">
								<input type="radio" name="status" id="optionsRadios2" value="1" <eq name="list['status']" value="1">checked="checked"</eq>>
								<label for="optionsRadios2">passing</label>
							</div>
							<div class="radio">
								<input type="radio" name="status" id="optionsRadios3" value="2" <eq name="list['status']" value="2">checked="checked"</eq>>
								<label for="optionsRadios3">rejected</label>
							</div>
						</div>
						<else/>	
						<p><eq name="list.status" value="1">Passing<else/><font color="red">Rejected</font></eq></p>
						</eq>
						
					</li>
					<li>
						<label>Reasons for refusal</label>
						<eq name="list.status" value="0">
						<textarea class="form-control" name="remark" id="remark" rows="5" style="width:500px"><{$list['remark']}></textarea>
						<else/>
						<p><{$list['remark']}></p>
						</eq>
					</li>
					<li>
						<eq name="list.status" value="0">
						<button type="submit" class="btn btn-success"><{:L('_public_submit')}></button>
						<else/>
						<button type="button" class="btn btn-success" onclick="window.history.go(-1)">Go back</button>
						</eq>
					</li>					
				</div>
				<input type="hidden" name="id" value="<{$list['id']}>">
				</form>
			</div>
		</div>
	</div>
</div>